<?php
namespace Home\Controller;
use Think\Controller;
class ShoppingController extends Controller {
    public function index(){
        //购物车
        $this->display();
        session_start();
        /**
         *单例模式购物车(SESSION购物车)
         */
        $s=session('id');

    }
}